package com.pension.org.service.impl;

import com.pension.org.entity.UserInfo;
import com.pension.org.mapper.UserInfoMapper;
import com.pension.org.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserInfoServiceImpl implements UserInfoService {
    @Resource
    private UserInfoMapper userMapper;

    @Override
    public UserInfo findOne(UserInfo user) {
        return userMapper.findOne(user);
    }

    @Override
    public int addOne(UserInfo user) {
        return userMapper.addOne(user);
    }

    @Override
    public UserInfo checkReg(String userLogin) {
        return userMapper.checkReg(userLogin);
    }
}
